Skip to main content
Version: 1.x.x

Response Type

Response type defines the data that will be returned to us from the server


Example

type ResponseType = Array<{
name: string;
email: string;
age: number;
}>;

const getUsers = builder.createCommand<ResponseType>()({
endpoint: "/users",
});